package com.wutuo.roster.provider.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 朋友圈指标枚举
 *
 * @author lvh
 * @version 版本号：V1.0
 */
public enum EliteChoiceEnum {
    /**
     * 好
     */
    ELITE_GOOD(1, "很棒"),

    /**
     * 较好
     */
    ELITE_J_GOOD(2, "好"),

    /**
     * 加油
     */
    ELITE_JIA_YOU(3, "加油"),

    /**
     * 不适用
     */
    ELITE_B_SY(4, "不适用");

    private Object code;

    private String name;

    EliteChoiceEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getValue() {

        // TODO Auto-generated method stub
        return code.toString();
    }

    public Long getLongValue() {

        // TODO Auto-generated method stub
        return (Long) code;
    }

    public String getName() {

        // TODO Auto-generated method stub
        return name;
    }

    /**
     * 返回该对象的MAP
     *
     * @return MAP集合
     */
    public Map getMap() {

        Map m = new HashMap();
        m.put("type_id", code);
        m.put("type_name", name);
        return m;
    }

}